package com.szt.sy.entity.system;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.szt.sy.entity.base.BaseAutoIncEntity;

import lombok.Data;

/**
 * @author wwy
 *
 *         <p>
 *         说明：数据字典<br/>
 *         创建时间：2018-01-15
 *         </p>
 */
@Data
@TableName(value = "sys_dict")
public class Dict extends BaseAutoIncEntity {
	private static final long serialVersionUID = 1L;
	
	/** 能否修改-能 */
	public static final Short EDITABLE_TRUE = 1;
	
	/** 能否修改-否 */
	public static final Short EDITABLE_FALSE = -1;
	
	/** 能否可见-能 */
	public static final Short VISIBLE_TRUE = 1;
	
	/** 能否可见-否 */
	public static final Short VISIBLE_FALSE = -1;
	
	/** 类型id */
	private Long typeId;
	/** 名称 */
	private String name;
	/** 代码编号 */
	private String code;
	/** 能否编写,-1:不能修改,1-可以修改 */
	private Short editable;
	/** 排序 */
	private Integer sort;
	/** 额外信息 */
	private String extra;
	/** 是否可见,-1:不可见,1-:可见 */
	private Short visible;
	
	@TableField(exist = false)
	private DictType dictType;
	
}